package com.notes.romania.broadcastreceiver;

import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;

import com.notes.romania.services.BackgroundService;

public class BootBroadcast extends BroadcastReceiver{
	public static final String TAG = "BootBroadcast";
	@Override
	public void onReceive(Context context, Intent intent){
		if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())){
		   ComponentName comp = new ComponentName(context.getPackageName(), BackgroundService.class.getName());
		   context.startService(new Intent().setComponent(comp));
		}
	}
}